﻿#region

using Ink_Master.Bots.InkMaster.InfoBuilders.Static;
using Ink_Master.Bots.InkMaster.Objects;

#endregion

namespace Ink_Master.Bots.InkMaster.InfoBuilders
{
    public class Construct
    {
        public static InkCollector.InkCollectionInfo ConstructInkCollectorItem(string inkName, int inkqty)
        {
            InkCollector.InkCollectionInfo inkCollector = new InkCollector.InkCollectionInfo {Ink = inkName};

            Log.Slog("Ink: " + inkName);
            inkCollector.InkId = Inks.InkIdFromInkName(inkName);
            Log.Slog("Ink ID: " + inkCollector.InkId);
            inkCollector.InkQty = inkqty;
            Log.Slog("Ink Qty: " + inkCollector.InkQty);
            inkCollector.PigmentNeeded = WoWHead.GetPigmentFromInkID(inkCollector.InkId);
            Log.Slog("Pigment Needed: " + inkCollector.PigmentNeeded);
            inkCollector.Herbs = Herbs.HerbsFromPigment(inkCollector.PigmentNeeded);
            Log.Slog("Herbs Needed: ");
            foreach (string s in inkCollector.Herbs)
            {
                Log.Slog(s);
            }

            return inkCollector;
        }
    }
}